package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_sessions")
public class UserSession {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String token;
    private String deviceInfo;
    private String ipAddress;
    private LocalDateTime loginTime;
    private LocalDateTime lastAccessTime;
    private LocalDateTime expiryTime;
    private Boolean active;
}